package com.neuedu.charge.cost.fegin;

import com.neuedu.charge.base.entity.User;
import com.neuedu.charge.base.response.Result;
import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "USER-SERVICE", path = "/user")
public interface UserFeign {
    @GetMapping("/get/user/{id}")
    Result getUserById(@PathVariable("id") Long id);

}
